//
//  ScheduleWeekCell.m
//  YunDongGym
//
//  Created by lqq on 2018/8/9.
//  Copyright © 2018年 lqq. All rights reserved.
//

#import "ScheduleWeekCell.h"

@implementation ScheduleWeekCell

- (void)awakeFromNib {
    [super awakeFromNib];
}

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
//        @property (weak, nonatomic) IBOutlet UIView *leftView;
//        @property (weak, nonatomic) IBOutlet UIView *rightView;
//        @property (weak, nonatomic) IBOutlet UIView *topView;
//        @property (weak, nonatomic) IBOutlet UIView *bottomView;
//        @property (weak, nonatomic) IBOutlet UIView *statusView;
//        @property (weak, nonatomic) IBOutlet UILabel *contentLabel;
        UIColor *lineColor = HEXColor(@"DDDDDD");
//        _topView = [self addViewKeepTopWithHeight:0.5 topSpace:0 leftSpace:0 rightSpace:0 backColor:lineColor];
//        _leftView = [self addViewKeppLeftWithWidth:0.5 leftSpace:0 topSpace:0 bottomSpace:0 backColor:lineColor];
//        _rightView = [self addViewKeepRightWithWidth:0.5 rightSpace:0 topSpace:0 bottomSpace:0 backColor:lineColor];
//        _bottomView = [self addViewKeepBottomWithHeight:0.5 bottomSpace:0 leftSpace:0 rightSpace:0 backColor:lineColor];
//        _statusView = [[UIView alloc] init];
//        [self addSubview:_statusView];
//        [_statusView mas_makeConstraints:^(MASConstraintMaker *make) {
//            make.edges.equalTo(self);
//        }];
        
        CGFloat viewWidth = (kDeviceWidth - 46) / 7;
        CGFloat viewHeight = 56;
        
        _leftView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 0.5, viewHeight)];
        _leftView.backgroundColor = lineColor;
        [self addSubview:_leftView];
        
        _rightView = [[UIView alloc] initWithFrame:CGRectMake(viewWidth - 0.5, 0, 0.5, viewHeight)];
        _rightView.backgroundColor = lineColor;
        [self addSubview:_rightView];
        
        _topView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, viewWidth, 0.5)];
        _topView.backgroundColor = lineColor;
        [self addSubview:_topView];
        
        _bottomView = [[UIView alloc] initWithFrame:CGRectMake(0, viewHeight - 0.5, viewWidth, 0.5)];
        _bottomView.backgroundColor = lineColor;
        [self addSubview:_bottomView];
        
        
                
        _contentLabel = [[UILabel alloc] init];
        _contentLabel.frame = CGRectMake(0, 0, viewWidth, viewHeight);
        [self addSubview:_contentLabel];
        _contentLabel.font = RegularFont(9);
        _contentLabel.numberOfLines = 0;
        _contentLabel.textAlignment = NSTextAlignmentCenter;
        _contentLabel.textColor = HEXColor(@"#0E1C29");
        
        
        _indicaterView = [[UIView alloc] init];
        _indicaterView.frame = CGRectMake(0, 0, 2, viewHeight);
        [self addSubview:_indicaterView];
        
        UIView *selectedBackgroundView = [[UIView alloc] init];
        selectedBackgroundView.backgroundColor = HEXColor(@"DDDDDD");
        self.selectedBackgroundView =selectedBackgroundView;
        
    }
    return self;
}



@end
